<?php


/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Table1
 *
 * @author michamaciejewski
 */
class Table1 extends Model{
  public static $connection = 'orm';
  public static $tableName = 'table1';
  public static $primary = 'id';
  public static $fieldsMapping = array(
    'pole1' => 'field1',
    'pole2' => 'field2'
  );
  public static $hasOne = array(
    'table' => array(
      'model' => 'Table2',
      'foreign' => 'table2_id'
    )
  );
}
?>
